import { request } from "@/utils/http";




// 获取品牌数据的接口
export const reqTrademark = (page:any,limit:any)=>request.get<any,any>(`/admin/product/baseTrademark/${page}/${limit}`)



// 添加或修改品牌
export const reqAddOrUpdate = (data:any)=>{
    if(data.id){
        request.put<any,any>('/admin/product/baseTrademark/update',data)
    }else{
        request.post<any,any>('/admin/product/baseTrademark/save',data)
    }
}


// 删除品牌
export const reqDeleteTrademark = (id:any) =>request.delete<any,any>(`/admin/product/baseTrademark/remove/${id}`)